﻿using FI.Core.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FI.Core.Caching.Configuration
{
    /// <summary>
    /// The <see cref="HttpRuntimeCacheStoreFactory"/> specific configuration element.
    /// </summary>
    public class HttpRuntimeCacheStoreFactoryData : CacheStoreFactoryDataBase
    {
        /// <summary>
        /// Gets the delegate to create <see cref="HttpRuntimeCacheStoreFactory"/>.
        /// </summary>
        /// <param name="settings">The current configuartion section.</param>
        /// <returns>The delegate to create <see cref="HttpRuntimeCacheStoreFactory"/>.</returns>
        public override Func<ICacheStoreFactory> GetProviderCreator(ServiceLocatableSettings settings)
        {
            return () => new HttpRuntimeCacheStoreFactory();
        }
    }
}
